package com.sun.huazhi.aitaskservice.DTO.response;

import lombok.Data;

import java.util.Map;

public class VideoTaskResponse {
    private String task_id;
    private String status;
    private String message;
    private Map<String, Object> request;
    private String created_at;
    private Integer progress;
    private VideoResult result;
    private String completed_at;

    public VideoTaskResponse(String taskId, String status, Object o) {
        this.task_id = taskId;
        this.status = status;
        this.message = o.toString();
    }

    public String getTask_id() {
        return task_id;
    }

    public void setTask_id(String task_id) {
        this.task_id = task_id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Map<String, Object> getRequest() {
        return request;
    }

    public void setRequest(Map<String, Object> request) {
        this.request = request;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public Integer getProgress() {
        return progress;
    }

    public void setProgress(Integer progress) {
        this.progress = progress;
    }

    public VideoResult getResult() {
        return result;
    }

    public void setResult(VideoResult result) {
        this.result = result;
    }

    public String getCompleted_at() {
        return completed_at;
    }

    public void setCompleted_at(String completed_at) {
        this.completed_at = completed_at;
    }

    public static class VideoResult {
        private String video_url;
        private String thumbnail;
        private Integer duration;

        public String getVideo_url() {
            return video_url;
        }

        public void setVideo_url(String video_url) {
            this.video_url = video_url;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public Integer getDuration() {
            return duration;
        }

        public void setDuration(Integer duration) {
            this.duration = duration;
        }
    }
}
